package com.szholly.pro.watergas_server.ps.android.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.szholly.pro.watergas_server.ps.android.service.SupplyWaterService;

@Controller
@RequestMapping("/android/Supply/*")
public class SupplyController {
	@Autowired
	SupplyWaterService SupplyWaterService;
	/**
	 * 查看供水运维项总未完成任务数
	 * 
	 */
	@RequestMapping("/getSupplyTaskNum")
	@ResponseBody
	public String getSupplyTaskNum(String stationId){
		if(null == stationId){
			return null;
		}
		String jsonResult = SupplyWaterService.getSupplyTaskNum(stationId);
		return jsonResult;
	}
	/**
	 * 查看供水运维项总未完成任务数
	 * 
	 */
	@RequestMapping("/deleteSupplyTask")
	@ResponseBody
	public String deleteSupplyTask(String taskCode){
		if(null == taskCode){
			return null;
		}
		String jsonResult = SupplyWaterService.deleteSupplyTask(taskCode);
		return jsonResult;
	}

}
